package part08_外观模式_家庭影院;

/**
 * @ClassName: DVDPlayer
 * @Author: AllenSun
 * @Date: 2020/3/2 21:50
 */
public class Light {
    //使用一个单例模式（饿汉式）
    private static Light instance=new Light();

    public static Light getInstance(){
        return instance;
    }

    /**
     * @MethodName: bright
     * @Author: AllenSun
     * @Date: 2020/3/2 21:56
     */
    public void bright(){
        System.out.println("灯光亮度调亮");
    }

    /**
     * @MethodName: dim
     * @Author: AllenSun
     * @Date: 2020/3/2 21:56
     */
    public void dim(){
        System.out.println("灯光亮度调暗");
    }
}
